<template>
  <view class="address_box">
    <view class="address">
      <view class="address_item">
        <view class="address_item1">
          <image src="../../static/icon/star.png" mode=""></image>
          <text class="ads">{{props.info.name}}</text>
          <text class="nearly">离你最近</text>
        </view>
        <view class="surprised">
          <text class="now">NOW</text>
          <text>惊喜不止这一杯</text>
        </view>
        <view class="orientation">
          <image src="../../static/icon/dingwei.png" mode=""></image>
          <text>{{props.info.address}}</text>
        </view>
        <view class="openHours">
          <image src="../../static/icon/clock.png" mode=""></image>
          <text>{{props.info.time}}</text>
        </view>
        <view class="isOpen">
          营业中
        </view>
      </view>
      <view class="distance">
        <view class="order">去下单</view>
        <view class="distance_mi"><text>1.10</text>km</view>
        <view class="service">
          <!-- <text class="radio"><image src="../../static/icon/dianhua.png" mode=""></image></text> -->
          <image src="../../static/icon/dianhua.png" mode=""></image>
          <image src="../../static/icon/daohangs.png" mode=""></image>
          
        </view>
      </view>
    </view>
  </view>
</template>

<script setup>
import { defineProps } from "vue";
// import { getHots } from "../../service/address.js";
let props = defineProps(["info"]);

</script>

<style>
  .address_box {
    width: 100%;
    height: 294rpx;
    padding-left: 30rpx;
    padding-right: 30rpx;
    box-sizing: border-box;
    margin-top: 28rpx;
    ;
  }

  .address {
    width: 100%;
    height: 100%;
    /* border: 1rpx solid; */
    border-radius: 20rpx;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 34rpx 34rpx 34rpx 30rpx;
    box-sizing: border-box;

  }
  .address_item image{
    width: 28rpx;
    height: 28rpx;
  }
  .distance image{
    width: 24rpx;
    height: 24rpx;
  }
  .address_item1{
    width: 360rpx;
    line-height: 28rpx;
  
  }
  .address_item{
    width: 464rpx;
    height: 100%;
    border-right: 1rpx solid #eee;
  }
    
/*   .radio{
    display: block;
    width: 48rpx;
    height: 48rpx;
    border: 1rpx solid;
    background-color: #e6edf8;
    border-radius: 48rpx;
    position: relative;
  } */
  .ads{
    font-size: 26rpx;
    margin-left:20rpx;
  }
  .nearly{
    /* display: inline-block; */
    width: 88rpx;
    line-height: 28rpx;
    font-size:16rpx;
    color:#1e4e8f;
    background-color: #e5f0f5;
    margin-left: 22rpx;
    border-radius: 26rpx;
    position: relative;
    top: -4rpx;
    text-align: center;
  }
.surprised{
  color:#1e4e8f;
  font-size: 18rpx;
  margin-top: 14rpx;
}
.now{
  display: inline-block;
  width: 66rpx;
  line-height: 20rpx;
  border-radius: 20rpx;
  background-color:#0252c4;
  color: white;
  font-size: 14rpx;
  text-align: center;
  margin-right: 8rpx;
}
.orientation{
  margin-top: 10rpx;
  font-size:22rpx;
  color:#c3c3c3;
  height: 50rpx;
/*   width: 370rpx; */
}
.orientation image{
  position: relative;
  top: -23rpx;
}
.orientation text{
  display: inline-block;
  width: 340rpx;
  height: 50rpx;
  margin-left: 14rpx;
}
.openHours{
  margin-top: 12rpx;
  color:#c3c3c3;
  font-size: 22rpx
}
.openHours text{
  margin-left: 14rpx;
}
.isOpen{
  margin-top: 10rpx;
  font-size: 22rpx;
  text-align:center;
  color: #1c577a;
  border: 1rpx solid #0d53a6;
  width: 78rpx;
  height: 34rpx;
  border-radius: 5rpx;
}
.openHours image{
  position: relative;
  top:6rpx;
}
.order{
  font-size: 24rpx;
}
.distance_mi{
  margin-top: 11rpx;
  font-size: 20rpx;
  color:#646464;
}
.service{
  margin-top: 24rpx;
  width: 126rpx;
  height: 48rpx;
}
.service image:first-child{
  position: relative;
  left: 0rpx;
}
.service image:last-child{
  position: relative;
  right: -30rpx;
}


</style>